//app.js
App({
  data: {
    config: {
      apiBase: 'https://gd.0to9.top/'
    },
    navList: [ // 导航数据
      {
        name: '首页',
        value: 'index',
        icon: '/assets/icons/home.png',
        active: '/assets/icons/home-active.png',
        url: "/pages/index/index"
      },
      {
        name: '案例地图',
        value: 'map',
        icon: '/assets/icons/map.png',
        active: '/assets/icons/map-active.png',
        url: "/pages/caseMap/caseMap"
      },
      { 
        name: '预约',
        value: 'subscribe',
        icon: '/assets/icons/phone.png',
        active: '/assets/icons/phone.png'
      },
      {
        name: '设计机构',
        value: 'design',
        icon: '/assets/icons/design.png',
        active: '/assets/icons/design-active.png',
        url: "/pages/design/design"
      },
      {
        name: '关于本设',
        value: 'about',
        icon: '/assets/icons/about.png',
        active: '/assets/icons/about-active.png',
        url: "/pages/index/index"
      }
    ]
  },
  onLaunch: function () {

  },
  redirectTo: function (url) {
    wx.redirectTo({
      url: url
    })
  },
  pageTo: function (url) {
    wx.navigateTo({
      url: url,
    })
  },
  callPhone: function () {
    wx.makePhoneCall({
      phoneNumber: '13755006380'
    })
  }
})